<template>
  <div>
    <TypeNav />
    <div id="center">
      <Center />
      <Right />
    </div>
    <Bottom />
    <Like />
    <Floor v-for="floor in floors" :key="floor.id" :floor="floor" />9
    <!-- <Floor /> -->
    <Brand />
  </div>
</template>

<script>
import Right from "./Right/index.vue";
import Center from "./Center/index.vue";
// import TypeNav from "../../components/TypeNav";
import Bottom from "./Bottom/index.vue";
import Like from "./Like/index.vue";
import Brand from "./Brand/Brand.vue";
import Floor from "./Floor/Floor.vue";

import { mapActions, mapState } from "vuex";

export default {
  name: "Home",
  data() {
    return {};
  },
  mounted() {
    this.MockFloors();
  },
  methods: {
    ...mapActions("Home", ["MockFloors"]),
  },
  computed: {
    ...mapState("Home", ["floors"]),
  },
  components: {
    Right,
    Center,
    Bottom,
    Like,
    Brand,
    Floor,
  },
};
</script>

<style scoped>
#box-top {
  display: flex;
  list-style: none;
  width: 1200px;
  text-align: center;
  margin: auto;
}
#box-top li {
  font-size: 16px;
  margin: 0 22px;
  line-height: 45px;
  text-align: center;
}
#box-top .first-li {
  width: 210px;
  background-color: orange;
  font-weight: bold;
  font-size: 14px;
  margin: 0;
  opacity: 0.6;
}
#box-top .first-li a {
  color: aliceblue;
}
#center {
  position: relative;
  display: flex;
  width: 1200px;
  height: 466px;
  margin: auto;
  justify-content: space-between;
}
</style>